package com.hunzi.service.impl;

import com.hunzi.domain.AdminUser;
import com.hunzi.domain.User;
import com.hunzi.mapper.AdminUserMapper;
import com.hunzi.service.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AdminUserServiceImpl implements AdminUserService {
    @Autowired(required = false)
    private AdminUserMapper adminUserMapper;

    @Override
    public int deleteByPrimaryKey(Integer uid) {
        return 0;
    }

    @Override
    public int insert(AdminUser record) {
        return 0;
    }

    @Override
    public AdminUser selectByPrimaryKey(Integer uid) {
        return null;
    }

    @Override
    public List<AdminUser> selectAll() {
        return null;
    }

    @Override
    public int updateByPrimaryKey(AdminUser record) {
        return 0;
    }

    @Override
    public AdminUser longinUser(String username, String password) {
        AdminUser adminUser = adminUserMapper.longinUser ( username, password );
        return adminUser;
    }


}
